using System.Collections.Generic;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Marketing
{
    /// <summary>
    /// 营销活动查询请求模型
    /// </summary>
    public class MarketingActivityQueryRequest : OrgBaseRequest, IRequestMapper
    {
        /// <summary>
        /// 赞助商ID
        /// </summary>
        public string? SponsorId { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public string? Page { get; set; }

        /// <summary>
        /// 每页数量限制
        /// </summary>
        public string? Limit { get; set; }

        /// <summary>
        /// 获取接口路径
        /// </summary>
        /// <returns>接口路径</returns>
        public string Path()
        {
            return "/open/org/bank/act-bridge/act/list/sponsor";
        }

        /// <summary>
        /// 转换为字典，过滤掉值为null的字段，使用snake_case命名策略
        /// </summary>
        /// <returns>字典对象</returns>
        public Dictionary<string, object> ToMap()
        {
            var result = new Dictionary<string, object>();
            
            if (!string.IsNullOrEmpty(SponsorId))
                result["sponsor_id"] = SponsorId;
            
            if (!string.IsNullOrEmpty(Page))
                result["page"] = Page;
            
            if (!string.IsNullOrEmpty(Limit))
                result["limit"] = Limit;
            
            return result;
        }
    }
} 